package com.yanggeng.demo.beginnerguidedemo.activity

import android.os.Bundle
import com.yanggeng.demo.beginnerguidedemo.R
import com.yanggeng.demo.beginnerguidedemo.widget.Rotate3DAnimation
import kotlinx.android.synthetic.main.activity_animation.*

class AnimationActivity: BaseActivity() {

    private var mRotate3DAnimation = Rotate3DAnimation()

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_animation)
        setTitle(true, "Animation")
        btn_start.setOnClickListener { iv_temp.startAnimation(mRotate3DAnimation) }
    }
}